package com.qiangesoft.im.core.constant;

/**
 * 即时通讯消息类型
 *
 * @author qiangesoft
 * @date 2023-08-30
 */
public enum ImBodyEnum {

    /**
     * ping
     */
    PING("ping"),

    /**
     * pong
     */
    PONG("pong"),

    /**
     * 被踢下线
     */
    OFFLINE("offline"),

    /**
     * 消息
     */
    MESSAGE("message"),
    ;

    private String code;

    private ImBodyEnum(String code) {
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
